package com.bobo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 系统菜单
 *
 * @author LILIBO
 * @since 2023-02-18
 */
@Tag(name = "系统菜单")
@Data
@TableName("sys_menu")
public class SysMenu implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 菜单编码
     */
    @Schema(name = "菜单编码")
    @TableId(type = IdType.AUTO)
    private String code;

    /**
     * 父级编码
     */
    @Schema(name = "父级编码")
    private String parentCode;

    /**
     * 类型 0:目录;1:菜单
     */
    @Schema(name = "类型 0:目录;1:菜单")
    private Integer type;

    /**
     * 名称
     */
    @Schema(name = "名称")
    private String title;

    /**
     * URL
     */
    @Schema(name = "URL")
    private String href;

    /**
     * 描述
     */
    @Schema(name = "描述")
    private String remark;

    /**
     * 状态 0:启用;1:禁用
     */
    @Schema(name = "状态 0:启用;1:禁用")
    private Integer status;

    /**
     * 图片
     */
    @Schema(name = "图片")
    private String image;

    /**
     * 图标
     */
    @Schema(name = "图标")
    private String icon;

    /**
     * 目标
     */
    @Schema(name = "目标")
    private String target;

}
